{%extends "base.html"%}
{%block title%}{{username}}{%endblock%}
{%block sideleft%}{%include "sideleft.html"%}{%endblock%}
{%block content%}
<!--登录成功以后的内容-->
<div class="myactivity">
		<h3>我的消息</h3>
		<div id='notice'>
			<ul>
				{%for notice in notices.object_list%}
					<li>
						{{notice.title}}&nbsp;&nbsp;&nbsp;
						{{notice.message}}&nbsp;&nbsp;&nbsp;
						{{notice.receiver_time|date:"Y-m-d H:m:s"}}&nbsp;&nbsp;&nbsp;
						{%ifequal notice.readed "False"%}
							<span id='accept_ignore'>
								<a href='javascript:acceptFriend({{notice.id}})'>同意</a>&nbsp;
								<a href='javascript:ignoreFriend({{notice.id}})'>忽略</a>
							</span>
						{%endifequal%}
					</li>
				{%endfor%}	
			</ul>
		</div>
</div>
{%endblock%}
{%block sideright%}{%include "sideright.html"%}{%endblock%}